import request from "@/utils/requestMock";

export interface UserInfo {
    account: string;
    avatar: string;
    avocation: [];
    level: number;
    moreBackup: {};
    statisticsBackup: {};
    gender: string;
    birthday: string;
    city: string;
    intersts: [];
}

export interface Dynamic {
    content: [];
}

export interface avocationModel {
    groupType: string;
    name: string;
    id: string;
}
export type avocationList = avocationModel[];

export default {
    reqUserInfo() {
        return request.get<any, UserInfo>("/userinfo");
    },
    reqDynamic() {
        return request.get<any, Dynamic>("/dynamics");
    },
    reqMemberList() {
        return request.get<any, any>("/members");
    },
    reqCityList() {
        return request.get<any, any>("/city");
    },
    reqSkilllevel() {
        return request.get<any, any>("/skillevel");
    },
    reqMyAvocationList() {
        return request.get<any, avocationList>("/myavocationlist");
    },
    reqAvocationList() {
        return request.get<any, avocationList>("/avocationlist");
    },
};
